#include<stdio.h>
#include<assert.h>

char* my_strcpy(char* dest, const char* src)
{
	//assert(dest != NULL);
	//assert(src != NULL);
	assert(src && dest);

	char* ret = dest;
	while (*dest++ = *src++)
	{
		;
	}

	return ret;
}

int main()
{
	char arr1[20] = { 0 };
	char* arr2 = "hello bit";

	my_strcpy(arr1, arr2);

	printf("%s\n", arr1);
	return 0;
}